# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=mpdris2
pkgver=0.8
pkgrel=0
pkgdesc="MPRIS V2.1 support for mpd"
url="https://github.com/eonpatapon/mpDris2"
arch="noarch"
license="GPL-3.0-only"
depends="py3-mpd2"
makedepends="autoconf automake intltool gettext-dev"
options="!check" # no tests
subpackages="$pkgname-doc $pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/eonpatapon/mpDris2/archive/$pkgver.tar.gz"
builddir="$srcdir/mpDris2-$pkgver"

build() {
	./autogen.sh \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="b3c2973723e9fb3140a4e6c9e3dfe66cc305c2ad5014e1e63a165e3ec371b4135570fdf72f57081e86420bd652a9baeb32fd229989582e5f115c8613e0759f52  mpdris2-0.8.tar.gz"
